#include<stdio.h>
int lcm(int n1, int n2);
int neasure(int n1, int n2);
int main() {
	int a, b, c;
	scanf("%d,%d", &a, &b);
	c = lcm(a, b);
	printf("%d", c);
	return 0;
}
int lcm(int n1, int n2) {
	int n3;
	n3 = n1 * n2 / neasure(n1, n2);
	return(n3);
}
int neasure(int n1, int n2) {
	int n3 = n2;
	while (n1 % n2 != 0) {
		n3 = n1 % n2;
		n1 = n2;
		n2 = n3;
	}
	return(n3);
}
